﻿@model IEnumerable<LeadMaster.Models.ReferralCatsWithReferred>
@using LeadMaster.Models;

@{
    ViewBag.Title = "Index";
}
<div class="spacer"></div>
<h2>Referral Categories</h2>
<div class="spacer"></div>
<p>
    @Html.ActionLink("Create New Referral Category", "Create")
</p>
<div class="spacer"></div>
<table class="listtable contactstable" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th>Description</th>
<th>Parent Category</th>
<th>&nbsp;</th>
</tr>
</thead>
@foreach (ReferralCatsWithReferred item in Model)
{
    <tr>
        <td>@item.ReferralCat.Description</td>
        <td>@item.RelatedDescription</td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { referralCatsID = item.ReferralCat.ReferralCatsID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.ReferralCat.ReferralCatsID }) |
            @Html.ActionLink("Items", "MaintainItems", new { id = item.ReferralCat.ReferralCatsID })
        </td>
    </tr>
}
</table>
